.chatContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
}

.header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  display: flex;
  align-items: center;
}

.interviewInfo {
  h3 {
    margin: 0;
    font-size: 16px;
  }
}

.status {
  font-size: 12px;
  margin-left: 8px;
  
  &.online {
    color: #52c41a;
  }
  
  &.offline {
    color: #ff4d4f;
  }
}

.messageContainer {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.messageWrapper {
  display: flex;
  max-width: 80%;
  
  &.incoming {
    align-self: flex-start;
  }
  
  &.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
    
    .messageContent {
      margin-right: 8px;
      margin-left: 0;
    }
    
    .message {
      background-color: #e6f7ff;
      border-radius: 12px 2px 12px 12px;
    }
  }
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.messageContent {
  margin-left: 8px;
  display: flex;
  flex-direction: column;
}

.senderName {
  font-size: 12px;
  color: rgba(128, 128, 128, 0.8);
  margin-bottom: 4px;
}

.message {
  padding: 8px 12px;
  background-color: rgba(128, 128, 128, 0.1);
  border-radius: 2px 12px 12px 12px;
  word-break: break-word;
}

.messageTime {
  font-size: 12px;
  color: rgba(128, 128, 128, 0.7);
  margin-top: 4px;
  align-self: flex-end;
}

.inputArea {
  padding: 16px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.input {
  flex: 1;
  resize: none;
  border-radius: 20px;
  padding: 8px 12px;
}

.sendButton {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

// 明亮模式样式调整
:global(.light) {
  .message {
    background-color: #f0f0f0;
  }
  
  .outgoing {
    .message {
      background-color: #e6f7ff;
    }
  }
}

.loadingContainer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.emptyMessages {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(128, 128, 128, 0.7);
  font-style: italic;
} 